<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>编辑客户信息</title>
    <link rel="stylesheet" href="/static/style.css">
    <style>
        .edit-container { max-width: 400px; margin: 80px auto; background: #fff; border-radius: 10px; box-shadow: 0 4px 24px rgba(45,140,240,0.10); padding: 35px 35px 25px 35px; }
        .edit-container h2 { color: #2d8cf0; background: none; margin-bottom: 25px; text-align: center; }
        .edit-container form { display: flex; flex-direction: column; }
        .edit-container label { margin-bottom: 6px; color: #333; }
        .edit-container input { padding: 8px; margin-bottom: 18px; border: 1px solid #d0d0d0; border-radius: 5px; font-size: 15px; background: #f7fafd; }
        .edit-container button, .edit-container a { background: #2d8cf0; color: #fff; border: none; padding: 8px 0; border-radius: 5px; cursor: pointer; font-size: 16px; font-weight: bold; margin-bottom: 10px; text-align: center; text-decoration: none; transition: background 0.2s; }
        .edit-container button:hover, .edit-container a:hover { background: #1a6fb3; }
        .edit-container a { background: #f56c6c; margin-bottom: 0; }
        .edit-container a:hover { background: #c0392b; }
    </style>
</head>
<body>
    <div class="edit-container">
        <h2>编辑客户信息</h2>
        <form method="post">
            <label>客户姓名：</label><input type="text" name="name" value="{{ user.customerName }}" required>
            <label>身份证号：</label><input type="text" name="id_card" value="{{ user.PID }}" required>
            <label>联系电话：</label><input type="text" name="phone" value="{{ user.telephone }}" required>
            <label>联系地址：</label><input type="text" name="address" value="{{ user.address }}" required>
            <button type="submit">保存</button>
            <a href="/admin/user_manage">取消</a>
        </form>
    </div>
</body>
</html> 